using System;
using System.ComponentModel;
using System.Drawing;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace ICP_MS.Plugin.Advance;

public class FormPlat : Form
{
	private string[] torques = new string[4] { "100%", "75%", "50%", "25%" };

	private string[] subdivs = new string[4] { "1", "2", "16", "8" };

	private string[] attenus = new string[4] { "0%", "25%", "50%", "75%" };

	private int motorType = 1;

	private IContainer components = null;

	private GroupBox gbPerist;

	private TextBox txtAttenuP;

	private Label label9;

	private TextBox txtSubdivP;

	private Label label8;

	private TextBox txtTorqueP;

	private Label label7;

	private TextBox txtSpeedP;

	private Label label6;

	private GroupBox groupBox1;

	private GroupBox gbPlat;

	private CheckBox chkAll;

	private Button btnDefine;

	private Button btnReset;

	private Button btnCalibrate;

	private Button btnAtt;

	private Button btnDiv;

	private Button btnTorque;

	private Button btnSpeed;

	private ComboBox cbAttenu;

	private Label label5;

	private ComboBox cbSubdiv;

	private Label label4;

	private ComboBox cbTorque;

	private Label label3;

	private TextBox txtSpeed;

	private Label label2;

	private ComboBox cbMotor;

	private Label label1;

	private GroupBox gbX;

	private TextBox txtAttenuX;

	private Label label10;

	private TextBox txtSubdivX;

	private Label label11;

	private TextBox txtTorqueX;

	private Label label12;

	private TextBox txtSpeedX;

	private Label label13;

	private GroupBox gbZ;

	private TextBox txtAttenuZ;

	private Label label14;

	private TextBox txtSubdivZ;

	private Label label15;

	private TextBox txtTorqueZ;

	private Label label16;

	private TextBox txtSpeedZ;

	private Label label17;

	private GroupBox gbY;

	private TextBox txtAttenuY;

	private Label label18;

	private TextBox txtSubdivY;

	private Label label19;

	private TextBox txtTorqueY;

	private Label label20;

	private TextBox txtSpeedY;

	private Label label21;

	private GroupBox groupBox2;

	private TextBox txtLog;

	private Button button1;

	private Button btnInitialize;

	public FormPlat()
	{
		InitializeComponent();
	}

	private void FormPlat_Load(object sender, EventArgs e)
	{
		base.WindowState = FormWindowState.Maximized;
		ApplyResources();
		cbTorque.SelectedIndex = 0;
		cbSubdiv.SelectedIndex = 0;
		cbAttenu.SelectedIndex = 0;
		cbMotor.SelectedIndex = 0;
		Task.Factory.StartNew(ThreadRefreshStatus);
	}

	private void ApplyResources()
	{
		Text = Lang.Txt("FormPlat.Title.Text");
		groupBox1.Text = Lang.Txt("FormPlat.GroupBox.ParamSet.Text");
		groupBox2.Text = Lang.Txt("FormPlat.GroupBox.WarningInfo.Text");
		gbPerist.Text = Lang.Txt("FormPlat.GroupBox.Pump.Text");
		cbMotor.Items[0] = Lang.Txt("FormPlat.GroupBox.Pump.Text");
		cbMotor.Items[1] = Lang.Txt("FormPlat.GroupBox.XAxis.Text");
		cbMotor.Items[2] = Lang.Txt("FormPlat.GroupBox.YAxis.Text");
		cbMotor.Items[3] = Lang.Txt("FormPlat.GroupBox.ZAxis.Text");
		gbPlat.Text = Lang.Txt("FormPlat.GroupBox.Plat3D.Text");
		gbX.Text = Lang.Txt("FormPlat.GroupBox.XAxis.Text");
		gbY.Text = Lang.Txt("FormPlat.GroupBox.YAxis.Text");
		gbZ.Text = Lang.Txt("FormPlat.GroupBox.ZAxis.Text");
		label1.Text = Lang.Txt("FormPlat.MotorType.Text");
		label2.Text = Lang.Txt("FormPlat.RPMOrPosition.Text");
		label3.Text = Lang.Txt("FormPlat.TorqueSet.Text ");
		label4.Text = Lang.Txt("FormPlat.DivisionSet.Text");
		label5.Text = Lang.Txt("FormPlat.Attenuation.Text");
		btnAtt.Text = Lang.Txt("FormPlat.Button.Set.Text");
		btnDiv.Text = Lang.Txt("FormPlat.Button.Set.Text");
		btnSpeed.Text = Lang.Txt("FormPlat.Button.Set.Text");
		btnTorque.Text = Lang.Txt("FormPlat.Button.Set.Text");
		chkAll.Text = Lang.Txt("FormPlat.AllControl.Text");
		btnReset.Text = Lang.Txt("FormPlat.Button.Reset.Text");
		btnCalibrate.Text = Lang.Txt("ADD.XYZ.Initialize");
		btnDefine.Text = Lang.Txt("FormPlat.Button.ToPositionSetted.Text");
		label6.Text = Lang.Txt("FormPlat.CurrentRPM.Text");
		label7.Text = Lang.Txt("FormPlat.CurrentTorque.Text");
		label8.Text = Lang.Txt("FormPlat.CurrentDivision.Text");
		label9.Text = Lang.Txt("FormPlat.CurrentAttenuation.Text");
		label13.Text = Lang.Txt("FormPlat.CurrentPosition.Text");
		label12.Text = Lang.Txt("FormPlat.CurrentTorque.Text");
		label11.Text = Lang.Txt("FormPlat.CurrentDivision.Text");
		label10.Text = Lang.Txt("FormPlat.CurrentAttenuation.Text");
		label17.Text = Lang.Txt("FormPlat.CurrentPosition.Text");
		label16.Text = Lang.Txt("FormPlat.CurrentTorque.Text");
		label15.Text = Lang.Txt("FormPlat.CurrentDivision.Text");
		label14.Text = Lang.Txt("FormPlat.CurrentAttenuation.Text");
		label21.Text = Lang.Txt("FormPlat.CurrentPosition.Text");
		label20.Text = Lang.Txt("FormPlat.CurrentTorque.Text");
		label19.Text = Lang.Txt("FormPlat.CurrentDivision.Text");
		label18.Text = Lang.Txt("FormPlat.CurrentAttenuation.Text");
		btnInitialize.Text = Lang.Txt("ADD.XYZ.Initialize");
		button1.Text = Lang.Txt("ADD.XYZ.Text");
	}

	private void ThreadRefreshStatus()
	{
		while (!base.IsDisposed)
		{
			try
			{
				RefreshStatus();
				RefreshInfo();
			}
			catch (Exception ex)
			{
				Log.InsertLog("Advance", "Refresh plat error.", ex.Message, (Severity)3);
			}
			Thread.Sleep(2000);
		}
	}

	private void RefreshInfo()
	{
		uint warn = PlatManager.plat.ReadWarn;
		StringBuilder sbWarn = new StringBuilder();
		if (GetBit(warn, 1))
		{
			sbWarn.AppendLine(Lang.Txt("FormPlat.Error.XUnconnected.Text"));
		}
		if (GetBit(warn, 2))
		{
			sbWarn.AppendLine(Lang.Txt("FormPlat.Error.YUnconnected.Text"));
		}
		if (GetBit(warn, 3))
		{
			sbWarn.AppendLine(Lang.Txt("FormPlat.Error.ZUnconnected.Text"));
		}
		if (GetBit(warn, 4))
		{
			sbWarn.AppendLine(Lang.Txt("FormPlat.Error.PumpHotProtect.Text"));
		}
		if (GetBit(warn, 5))
		{
			sbWarn.AppendLine(Lang.Txt("FormPlat.Error.XHotProtected.Text"));
		}
		if (GetBit(warn, 6))
		{
			sbWarn.AppendLine(Lang.Txt("FormPlat.Error.YHotProtected.Text"));
		}
		if (GetBit(warn, 7))
		{
			sbWarn.AppendLine(Lang.Txt("FormPlat.Error.ZHotProtected.Text"));
		}
		if (GetBit(warn, 13))
		{
			sbWarn.AppendLine(Lang.Txt("FormPlat.Error.XZeroProtected.Text"));
		}
		if (GetBit(warn, 14))
		{
			sbWarn.AppendLine(Lang.Txt("FormPlat.Error.YZeroProtected.Text"));
		}
		if (GetBit(warn, 15))
		{
			sbWarn.AppendLine(Lang.Txt("FormPlat.Error.ZZeroProtected.Text"));
		}
		if (GetBit(warn, 17))
		{
			sbWarn.AppendLine(Lang.Txt("FormPlat.Error.XReset.Text"));
		}
		if (GetBit(warn, 18))
		{
			sbWarn.AppendLine(Lang.Txt("FormPlat.Error.YReset.Text"));
		}
		if (GetBit(warn, 19))
		{
			sbWarn.AppendLine(Lang.Txt("FormPlat.Error.ZReset.Text"));
		}
		if (GetBit(warn, 21))
		{
			sbWarn.AppendLine(Lang.Txt("FormPlat.Error.XCalibration.Text"));
		}
		if (GetBit(warn, 22))
		{
			sbWarn.AppendLine(Lang.Txt("FormPlat.Error.YCalibration.Text"));
		}
		if (GetBit(warn, 23))
		{
			sbWarn.AppendLine(Lang.Txt("FormPlat.Error.ZCalibration.Text"));
		}
		if (GetBit(warn, 25))
		{
			sbWarn.AppendLine(Lang.Txt("FormPlat.Error.XExceed.Text"));
		}
		if (GetBit(warn, 26))
		{
			sbWarn.AppendLine(Lang.Txt("FormPlat.Error.YExceed.Text"));
		}
		if (GetBit(warn, 27))
		{
			sbWarn.AppendLine(Lang.Txt("FormPlat.Error.ZExceed.Text"));
		}
		if (GetBit(warn, 29))
		{
			sbWarn.AppendLine(Lang.Txt("FormPlat.Error.XFarProtected.Text"));
		}
		if (GetBit(warn, 30))
		{
			sbWarn.AppendLine(Lang.Txt("FormPlat.Error.YFarProtected.Text"));
		}
		if (GetBit(warn, 31))
		{
			sbWarn.AppendLine(Lang.Txt("FormPlat.Error.ZFarProtected.Text"));
		}
		if (!base.IsDisposed)
		{
			Invoke((MethodInvoker)delegate
			{
				txtLog.Text = sbWarn.ToString();
			});
		}
	}

	private void RefreshStatus()
	{
		Invoke((MethodInvoker)delegate
		{
			txtSpeedP.Text = ((double)PlatManager.injector.ReadPerist * 0.1).ToString("F1");
			txtTorqueP.Text = torques[(int)PlatManager.injector.ReadTorque];
			txtSubdivP.Text = subdivs[(int)PlatManager.injector.ReadSubDivision];
			txtAttenuP.Text = attenus[(int)PlatManager.injector.ReadAttenuation];
			txtSpeedX.Text = (PlatManager.plat.ReadX / 100.0).ToString("F2");
			txtTorqueX.Text = torques[(int)PlatManager.plat.ReadXTorque];
			txtSubdivX.Text = subdivs[(int)PlatManager.plat.ReadXDiv];
			txtAttenuX.Text = attenus[(int)PlatManager.plat.ReadXAtten];
			txtSpeedY.Text = (PlatManager.plat.ReadY / 100.0).ToString("F2");
			txtTorqueY.Text = torques[(int)PlatManager.plat.ReadYTorque];
			txtSubdivY.Text = subdivs[(int)PlatManager.plat.ReadYDiv];
			txtAttenuY.Text = attenus[(int)PlatManager.plat.ReadYAtten];
			txtSpeedZ.Text = (PlatManager.plat.ReadZ / 100.0).ToString("F2");
			txtTorqueZ.Text = torques[(int)PlatManager.plat.ReadZTorque];
			txtSubdivZ.Text = subdivs[(int)PlatManager.plat.ReadZDiv];
			txtAttenuZ.Text = attenus[(int)PlatManager.plat.ReadZAtten];
		});
	}

	private void btnSpeed_Click(object sender, EventArgs e)
	{
		try
		{
			float speed = Convert.ToSingle(txtSpeed.Text);
			switch (motorType)
			{
			case 1:
				if (speed < 0f)
				{
					speed = 0f;
				}
				if (speed > 100f)
				{
					speed = 100f;
				}
				PlatManager.injector.Perist = (int)(speed * 10f);
				Plasma.Instance.SetPeristaltic();
				Log.InsertLog(Lang.Txt("AddFormIonSource.UserAction"), "SetPeristaltic", PlatManager.injector.Perist.ToString(), (Severity)1);
				break;
			case 2:
				if (speed < -1f)
				{
					speed = -1f;
				}
				if (speed > 21f)
				{
					speed = 20f;
				}
				PlatManager.plat.X = speed;
				Plasma.Instance.SetXAxis();
				Log.InsertLog(Lang.Txt("AddFormIonSource.UserAction"), "SetXAxis", PlatManager.plat.X.ToString(), (Severity)1);
				break;
			case 4:
				if (speed < -1f)
				{
					speed = -1f;
				}
				if (speed > 21f)
				{
					speed = 20f;
				}
				PlatManager.plat.Y = speed;
				Plasma.Instance.SetYAxis();
				Log.InsertLog(Lang.Txt("AddFormIonSource.UserAction"), "SetYAxis", PlatManager.plat.Y.ToString(), (Severity)1);
				break;
			case 8:
				if (speed < -1f)
				{
					speed = -1f;
				}
				if (speed > 21f)
				{
					speed = 20f;
				}
				PlatManager.plat.Z = speed;
				Plasma.Instance.SetZAxis();
				Log.InsertLog(Lang.Txt("AddFormIonSource.UserAction"), "SetZAxis", PlatManager.plat.Z.ToString(), (Severity)1);
				break;
			}
		}
		catch (Exception)
		{
			txtSpeed.Text = "0";
		}
	}

	private void btnTorque_Click(object sender, EventArgs e)
	{
		int torque = cbTorque.SelectedIndex;
		Plasma.Instance.SetPeristTorque(motorType, torque);
		Log.InsertLog(Lang.Txt("AddFormIonSource.UserAction"), "SetPeristTorque", motorType + " " + torque, (Severity)1);
	}

	private void btnDiv_Click(object sender, EventArgs e)
	{
		int subdiv = cbSubdiv.SelectedIndex;
		switch (motorType)
		{
		case 1:
			Plasma.Instance.SetPeristSubDivision(subdiv);
			Log.InsertLog(Lang.Txt("AddFormIonSource.UserAction"), "SetPeristSubDivision", subdiv.ToString(), (Severity)1);
			break;
		case 2:
		case 4:
		case 8:
			Plasma.Instance.SetPlatSubDivision(motorType, subdiv);
			Log.InsertLog(Lang.Txt("AddFormIonSource.UserAction"), "SetPeristSubDivision", motorType + " " + subdiv, (Severity)1);
			break;
		}
	}

	private void btnAtt_Click(object sender, EventArgs e)
	{
		int attenu = cbAttenu.SelectedIndex;
		switch (motorType)
		{
		case 1:
			Plasma.Instance.SetPeristAttenuation(attenu);
			Log.InsertLog(Lang.Txt("AddFormIonSource.UserAction"), "SetPeristAttenuation", attenu.ToString(), (Severity)1);
			break;
		case 2:
		case 4:
		case 8:
			Plasma.Instance.SetPlatAttenuation(motorType, attenu);
			Log.InsertLog(Lang.Txt("AddFormIonSource.UserAction"), "SetPlatAttenuation", motorType + " " + attenu, (Severity)1);
			break;
		}
	}

	private void btnReset_Click(object sender, EventArgs e)
	{
		if (chkAll.Checked)
		{
			Plasma.Instance.ResetPlat();
			Log.InsertLog(Lang.Txt("AddFormIonSource.UserAction"), "ResetPlat", "", (Severity)1);
			return;
		}
		int num = motorType;
		int num2 = num;
		if (num2 == 2 || num2 == 4 || num2 == 8)
		{
			Plasma.Instance.ResetPlat(motorType);
			Log.InsertLog(Lang.Txt("AddFormIonSource.UserAction"), "ResetPlat", motorType.ToString(), (Severity)1);
		}
	}

	private void btnCalibrate_Click(object sender, EventArgs e)
	{
		if (chkAll.Checked)
		{
			Plasma.Instance.CalibratePlat();
			Log.InsertLog(Lang.Txt("AddFormIonSource.UserAction"), "CalibratePlat", "", (Severity)1);
			return;
		}
		int num = motorType;
		int num2 = num;
		if (num2 == 2 || num2 == 4 || num2 == 8)
		{
			Plasma.Instance.CalibratePlat(motorType);
			Log.InsertLog(Lang.Txt("AddFormIonSource.UserAction"), "CalibratePlat", motorType.ToString(), (Severity)1);
		}
	}

	private void btnDefine_Click(object sender, EventArgs e)
	{
		if (chkAll.Checked)
		{
			Plasma.Instance.SetPlat2Define();
			Log.InsertLog(Lang.Txt("AddFormIonSource.UserAction"), "SetPlat2Define", "", (Severity)1);
			return;
		}
		int num = motorType;
		int num2 = num;
		if (num2 == 2 || num2 == 4 || num2 == 8)
		{
			Plasma.Instance.SetPlat2Define(motorType);
			Log.InsertLog(Lang.Txt("AddFormIonSource.UserAction"), "SetPlat2Define", motorType.ToString(), (Severity)1);
		}
	}

	private void cbMotor_SelectedIndexChanged(object sender, EventArgs e)
	{
		switch (cbMotor.SelectedIndex)
		{
		case 0:
			motorType = 1;
			break;
		case 1:
			motorType = 2;
			break;
		case 2:
			motorType = 4;
			break;
		case 3:
			motorType = 8;
			break;
		}
	}

	private bool GetBit(uint value, int index)
	{
		uint tmp = (uint)(1 << index);
		return (value & tmp) == tmp;
	}

	private void FormPlat_FormClosing(object sender, FormClosingEventArgs e)
	{
	}

	private void button1_Click(object sender, EventArgs e)
	{
		FormPlatTest formPlatTest = new FormPlatTest();
		formPlatTest.ShowDialog();
	}

	private void btnInitialize_Click(object sender, EventArgs e)
	{
		if (chkAll.Checked)
		{
			Plasma.Instance.InitializePlat();
			Log.InsertLog(Lang.Txt("AddFormIonSource.UserAction"), "InitializePlat", "", (Severity)1);
			return;
		}
		int num = motorType;
		int num2 = num;
		if (num2 == 2 || num2 == 4 || num2 == 8)
		{
			Plasma.Instance.InitializePlat(motorType);
			Log.InsertLog(Lang.Txt("AddFormIonSource.UserAction"), "InitializePlat", motorType.ToString(), (Severity)1);
		}
	}

	protected override void Dispose(bool disposing)
	{
		if (disposing && components != null)
		{
			components.Dispose();
		}
		base.Dispose(disposing);
	}

	private void InitializeComponent()
	{
		this.gbPerist = new System.Windows.Forms.GroupBox();
		this.txtAttenuP = new System.Windows.Forms.TextBox();
		this.label9 = new System.Windows.Forms.Label();
		this.txtSubdivP = new System.Windows.Forms.TextBox();
		this.label8 = new System.Windows.Forms.Label();
		this.txtTorqueP = new System.Windows.Forms.TextBox();
		this.label7 = new System.Windows.Forms.Label();
		this.txtSpeedP = new System.Windows.Forms.TextBox();
		this.label6 = new System.Windows.Forms.Label();
		this.groupBox1 = new System.Windows.Forms.GroupBox();
		this.gbPlat = new System.Windows.Forms.GroupBox();
		this.btnInitialize = new System.Windows.Forms.Button();
		this.chkAll = new System.Windows.Forms.CheckBox();
		this.btnDefine = new System.Windows.Forms.Button();
		this.btnReset = new System.Windows.Forms.Button();
		this.btnCalibrate = new System.Windows.Forms.Button();
		this.btnAtt = new System.Windows.Forms.Button();
		this.btnDiv = new System.Windows.Forms.Button();
		this.btnTorque = new System.Windows.Forms.Button();
		this.btnSpeed = new System.Windows.Forms.Button();
		this.cbAttenu = new System.Windows.Forms.ComboBox();
		this.label5 = new System.Windows.Forms.Label();
		this.cbSubdiv = new System.Windows.Forms.ComboBox();
		this.label4 = new System.Windows.Forms.Label();
		this.cbTorque = new System.Windows.Forms.ComboBox();
		this.label3 = new System.Windows.Forms.Label();
		this.txtSpeed = new System.Windows.Forms.TextBox();
		this.label2 = new System.Windows.Forms.Label();
		this.cbMotor = new System.Windows.Forms.ComboBox();
		this.label1 = new System.Windows.Forms.Label();
		this.gbX = new System.Windows.Forms.GroupBox();
		this.txtAttenuX = new System.Windows.Forms.TextBox();
		this.label10 = new System.Windows.Forms.Label();
		this.txtSubdivX = new System.Windows.Forms.TextBox();
		this.label11 = new System.Windows.Forms.Label();
		this.txtTorqueX = new System.Windows.Forms.TextBox();
		this.label12 = new System.Windows.Forms.Label();
		this.txtSpeedX = new System.Windows.Forms.TextBox();
		this.label13 = new System.Windows.Forms.Label();
		this.gbZ = new System.Windows.Forms.GroupBox();
		this.txtAttenuZ = new System.Windows.Forms.TextBox();
		this.label14 = new System.Windows.Forms.Label();
		this.txtSubdivZ = new System.Windows.Forms.TextBox();
		this.label15 = new System.Windows.Forms.Label();
		this.txtTorqueZ = new System.Windows.Forms.TextBox();
		this.label16 = new System.Windows.Forms.Label();
		this.txtSpeedZ = new System.Windows.Forms.TextBox();
		this.label17 = new System.Windows.Forms.Label();
		this.gbY = new System.Windows.Forms.GroupBox();
		this.txtAttenuY = new System.Windows.Forms.TextBox();
		this.label18 = new System.Windows.Forms.Label();
		this.txtSubdivY = new System.Windows.Forms.TextBox();
		this.label19 = new System.Windows.Forms.Label();
		this.txtTorqueY = new System.Windows.Forms.TextBox();
		this.label20 = new System.Windows.Forms.Label();
		this.txtSpeedY = new System.Windows.Forms.TextBox();
		this.label21 = new System.Windows.Forms.Label();
		this.groupBox2 = new System.Windows.Forms.GroupBox();
		this.txtLog = new System.Windows.Forms.TextBox();
		this.button1 = new System.Windows.Forms.Button();
		this.gbPerist.SuspendLayout();
		this.groupBox1.SuspendLayout();
		this.gbPlat.SuspendLayout();
		this.gbX.SuspendLayout();
		this.gbZ.SuspendLayout();
		this.gbY.SuspendLayout();
		this.groupBox2.SuspendLayout();
		base.SuspendLayout();
		this.gbPerist.Controls.Add(this.txtAttenuP);
		this.gbPerist.Controls.Add(this.label9);
		this.gbPerist.Controls.Add(this.txtSubdivP);
		this.gbPerist.Controls.Add(this.label8);
		this.gbPerist.Controls.Add(this.txtTorqueP);
		this.gbPerist.Controls.Add(this.label7);
		this.gbPerist.Controls.Add(this.txtSpeedP);
		this.gbPerist.Controls.Add(this.label6);
		this.gbPerist.Location = new System.Drawing.Point(16, 255);
		this.gbPerist.Margin = new System.Windows.Forms.Padding(4);
		this.gbPerist.Name = "gbPerist";
		this.gbPerist.Padding = new System.Windows.Forms.Padding(4);
		this.gbPerist.Size = new System.Drawing.Size(372, 174);
		this.gbPerist.TabIndex = 0;
		this.gbPerist.TabStop = false;
		this.gbPerist.Text = "蠕动泵";
		this.txtAttenuP.Location = new System.Drawing.Point(185, 129);
		this.txtAttenuP.Margin = new System.Windows.Forms.Padding(4);
		this.txtAttenuP.Name = "txtAttenuP";
		this.txtAttenuP.ReadOnly = true;
		this.txtAttenuP.Size = new System.Drawing.Size(147, 25);
		this.txtAttenuP.TabIndex = 7;
		this.txtAttenuP.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
		this.label9.Location = new System.Drawing.Point(21, 138);
		this.label9.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
		this.label9.Name = "label9";
		this.label9.Size = new System.Drawing.Size(160, 15);
		this.label9.TabIndex = 6;
		this.label9.Text = "当前衰减:";
		this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
		this.txtSubdivP.Location = new System.Drawing.Point(185, 94);
		this.txtSubdivP.Margin = new System.Windows.Forms.Padding(4);
		this.txtSubdivP.Name = "txtSubdivP";
		this.txtSubdivP.ReadOnly = true;
		this.txtSubdivP.Size = new System.Drawing.Size(147, 25);
		this.txtSubdivP.TabIndex = 5;
		this.txtSubdivP.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
		this.label8.Location = new System.Drawing.Point(21, 105);
		this.label8.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
		this.label8.Name = "label8";
		this.label8.Size = new System.Drawing.Size(160, 15);
		this.label8.TabIndex = 4;
		this.label8.Text = "当前细分:";
		this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
		this.txtTorqueP.Location = new System.Drawing.Point(185, 59);
		this.txtTorqueP.Margin = new System.Windows.Forms.Padding(4);
		this.txtTorqueP.Name = "txtTorqueP";
		this.txtTorqueP.ReadOnly = true;
		this.txtTorqueP.Size = new System.Drawing.Size(147, 25);
		this.txtTorqueP.TabIndex = 3;
		this.txtTorqueP.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
		this.label7.Location = new System.Drawing.Point(21, 69);
		this.label7.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
		this.label7.Name = "label7";
		this.label7.Size = new System.Drawing.Size(160, 15);
		this.label7.TabIndex = 2;
		this.label7.Text = "当前转矩:";
		this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
		this.txtSpeedP.Location = new System.Drawing.Point(185, 24);
		this.txtSpeedP.Margin = new System.Windows.Forms.Padding(4);
		this.txtSpeedP.Name = "txtSpeedP";
		this.txtSpeedP.ReadOnly = true;
		this.txtSpeedP.Size = new System.Drawing.Size(147, 25);
		this.txtSpeedP.TabIndex = 1;
		this.txtSpeedP.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
		this.label6.Location = new System.Drawing.Point(21, 32);
		this.label6.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
		this.label6.Name = "label6";
		this.label6.Size = new System.Drawing.Size(160, 15);
		this.label6.TabIndex = 0;
		this.label6.Text = "当前转速:";
		this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
		this.groupBox1.Controls.Add(this.gbPlat);
		this.groupBox1.Controls.Add(this.btnAtt);
		this.groupBox1.Controls.Add(this.btnDiv);
		this.groupBox1.Controls.Add(this.btnTorque);
		this.groupBox1.Controls.Add(this.btnSpeed);
		this.groupBox1.Controls.Add(this.cbAttenu);
		this.groupBox1.Controls.Add(this.label5);
		this.groupBox1.Controls.Add(this.cbSubdiv);
		this.groupBox1.Controls.Add(this.label4);
		this.groupBox1.Controls.Add(this.cbTorque);
		this.groupBox1.Controls.Add(this.label3);
		this.groupBox1.Controls.Add(this.txtSpeed);
		this.groupBox1.Controls.Add(this.label2);
		this.groupBox1.Controls.Add(this.cbMotor);
		this.groupBox1.Controls.Add(this.label1);
		this.groupBox1.Location = new System.Drawing.Point(16, 9);
		this.groupBox1.Margin = new System.Windows.Forms.Padding(4);
		this.groupBox1.Name = "groupBox1";
		this.groupBox1.Padding = new System.Windows.Forms.Padding(4);
		this.groupBox1.Size = new System.Drawing.Size(764, 239);
		this.groupBox1.TabIndex = 1;
		this.groupBox1.TabStop = false;
		this.groupBox1.Text = "参数设置";
		this.gbPlat.Controls.Add(this.btnInitialize);
		this.gbPlat.Controls.Add(this.chkAll);
		this.gbPlat.Controls.Add(this.btnDefine);
		this.gbPlat.Controls.Add(this.btnReset);
		this.gbPlat.Controls.Add(this.btnCalibrate);
		this.gbPlat.Location = new System.Drawing.Point(533, 0);
		this.gbPlat.Margin = new System.Windows.Forms.Padding(4);
		this.gbPlat.Name = "gbPlat";
		this.gbPlat.Padding = new System.Windows.Forms.Padding(4);
		this.gbPlat.Size = new System.Drawing.Size(223, 239);
		this.gbPlat.TabIndex = 14;
		this.gbPlat.TabStop = false;
		this.gbPlat.Text = "三维平台";
		this.btnInitialize.Location = new System.Drawing.Point(56, 203);
		this.btnInitialize.Margin = new System.Windows.Forms.Padding(4);
		this.btnInitialize.Name = "btnInitialize";
		this.btnInitialize.Size = new System.Drawing.Size(123, 29);
		this.btnInitialize.TabIndex = 17;
		this.btnInitialize.Text = "初始化";
		this.btnInitialize.UseVisualStyleBackColor = true;
		this.btnInitialize.Visible = false;
		this.btnInitialize.Click += new System.EventHandler(btnInitialize_Click);
		this.chkAll.AutoSize = true;
		this.chkAll.Location = new System.Drawing.Point(69, 28);
		this.chkAll.Margin = new System.Windows.Forms.Padding(4);
		this.chkAll.Name = "chkAll";
		this.chkAll.Size = new System.Drawing.Size(89, 19);
		this.chkAll.TabIndex = 16;
		this.chkAll.Text = "全部控制";
		this.chkAll.UseVisualStyleBackColor = true;
		this.btnDefine.Location = new System.Drawing.Point(56, 166);
		this.btnDefine.Margin = new System.Windows.Forms.Padding(4);
		this.btnDefine.Name = "btnDefine";
		this.btnDefine.Size = new System.Drawing.Size(123, 29);
		this.btnDefine.TabIndex = 15;
		this.btnDefine.Text = "预设位置";
		this.btnDefine.UseVisualStyleBackColor = true;
		this.btnDefine.Click += new System.EventHandler(btnDefine_Click);
		this.btnReset.Location = new System.Drawing.Point(56, 125);
		this.btnReset.Margin = new System.Windows.Forms.Padding(4);
		this.btnReset.Name = "btnReset";
		this.btnReset.Size = new System.Drawing.Size(123, 29);
		this.btnReset.TabIndex = 13;
		this.btnReset.Text = "复位";
		this.btnReset.UseVisualStyleBackColor = true;
		this.btnReset.Click += new System.EventHandler(btnReset_Click);
		this.btnCalibrate.Location = new System.Drawing.Point(56, 82);
		this.btnCalibrate.Margin = new System.Windows.Forms.Padding(4);
		this.btnCalibrate.Name = "btnCalibrate";
		this.btnCalibrate.Size = new System.Drawing.Size(123, 29);
		this.btnCalibrate.TabIndex = 14;
		this.btnCalibrate.Text = "校准";
		this.btnCalibrate.UseVisualStyleBackColor = true;
		this.btnCalibrate.Click += new System.EventHandler(btnCalibrate_Click);
		this.btnAtt.Location = new System.Drawing.Point(395, 179);
		this.btnAtt.Margin = new System.Windows.Forms.Padding(4);
		this.btnAtt.Name = "btnAtt";
		this.btnAtt.Size = new System.Drawing.Size(100, 29);
		this.btnAtt.TabIndex = 13;
		this.btnAtt.Text = "设置";
		this.btnAtt.UseVisualStyleBackColor = true;
		this.btnAtt.Click += new System.EventHandler(btnAtt_Click);
		this.btnDiv.Location = new System.Drawing.Point(395, 141);
		this.btnDiv.Margin = new System.Windows.Forms.Padding(4);
		this.btnDiv.Name = "btnDiv";
		this.btnDiv.Size = new System.Drawing.Size(100, 29);
		this.btnDiv.TabIndex = 12;
		this.btnDiv.Text = "设置";
		this.btnDiv.UseVisualStyleBackColor = true;
		this.btnDiv.Click += new System.EventHandler(btnDiv_Click);
		this.btnTorque.Location = new System.Drawing.Point(395, 102);
		this.btnTorque.Margin = new System.Windows.Forms.Padding(4);
		this.btnTorque.Name = "btnTorque";
		this.btnTorque.Size = new System.Drawing.Size(100, 29);
		this.btnTorque.TabIndex = 11;
		this.btnTorque.Text = "设置";
		this.btnTorque.UseVisualStyleBackColor = true;
		this.btnTorque.Click += new System.EventHandler(btnTorque_Click);
		this.btnSpeed.Location = new System.Drawing.Point(395, 64);
		this.btnSpeed.Margin = new System.Windows.Forms.Padding(4);
		this.btnSpeed.Name = "btnSpeed";
		this.btnSpeed.Size = new System.Drawing.Size(100, 29);
		this.btnSpeed.TabIndex = 10;
		this.btnSpeed.Text = "设置";
		this.btnSpeed.UseVisualStyleBackColor = true;
		this.btnSpeed.Click += new System.EventHandler(btnSpeed_Click);
		this.cbAttenu.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
		this.cbAttenu.FormattingEnabled = true;
		this.cbAttenu.Items.AddRange(new object[4] { "0% ", "25% ", "50% ", "75% " });
		this.cbAttenu.Location = new System.Drawing.Point(189, 184);
		this.cbAttenu.Margin = new System.Windows.Forms.Padding(4);
		this.cbAttenu.Name = "cbAttenu";
		this.cbAttenu.Size = new System.Drawing.Size(143, 23);
		this.cbAttenu.TabIndex = 9;
		this.label5.Location = new System.Drawing.Point(8, 188);
		this.label5.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
		this.label5.Name = "label5";
		this.label5.Size = new System.Drawing.Size(173, 15);
		this.label5.TabIndex = 8;
		this.label5.Text = "衰减设定:";
		this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
		this.cbSubdiv.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
		this.cbSubdiv.FormattingEnabled = true;
		this.cbSubdiv.Items.AddRange(new object[4] { "1 ", "2 ", "16 ", "8 " });
		this.cbSubdiv.Location = new System.Drawing.Point(189, 145);
		this.cbSubdiv.Margin = new System.Windows.Forms.Padding(4);
		this.cbSubdiv.Name = "cbSubdiv";
		this.cbSubdiv.Size = new System.Drawing.Size(143, 23);
		this.cbSubdiv.TabIndex = 7;
		this.label4.Location = new System.Drawing.Point(8, 149);
		this.label4.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
		this.label4.Name = "label4";
		this.label4.Size = new System.Drawing.Size(173, 15);
		this.label4.TabIndex = 6;
		this.label4.Text = "细分设定:";
		this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
		this.cbTorque.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
		this.cbTorque.FormattingEnabled = true;
		this.cbTorque.Items.AddRange(new object[4] { "100%", "75%", "50%", "25%" });
		this.cbTorque.Location = new System.Drawing.Point(189, 106);
		this.cbTorque.Margin = new System.Windows.Forms.Padding(4);
		this.cbTorque.Name = "cbTorque";
		this.cbTorque.Size = new System.Drawing.Size(143, 23);
		this.cbTorque.TabIndex = 5;
		this.label3.Location = new System.Drawing.Point(8, 110);
		this.label3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
		this.label3.Name = "label3";
		this.label3.Size = new System.Drawing.Size(173, 15);
		this.label3.TabIndex = 4;
		this.label3.Text = "转矩设定:";
		this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
		this.txtSpeed.Location = new System.Drawing.Point(189, 66);
		this.txtSpeed.Margin = new System.Windows.Forms.Padding(4);
		this.txtSpeed.Name = "txtSpeed";
		this.txtSpeed.Size = new System.Drawing.Size(143, 25);
		this.txtSpeed.TabIndex = 3;
		this.txtSpeed.Text = "0";
		this.label2.Location = new System.Drawing.Point(8, 71);
		this.label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
		this.label2.Name = "label2";
		this.label2.Size = new System.Drawing.Size(173, 15);
		this.label2.TabIndex = 2;
		this.label2.Text = "转速/位置:";
		this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
		this.cbMotor.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
		this.cbMotor.FormattingEnabled = true;
		this.cbMotor.Items.AddRange(new object[4] { "蠕动泵", "X轴", "Y轴", "Z轴" });
		this.cbMotor.Location = new System.Drawing.Point(189, 28);
		this.cbMotor.Margin = new System.Windows.Forms.Padding(4);
		this.cbMotor.Name = "cbMotor";
		this.cbMotor.Size = new System.Drawing.Size(143, 23);
		this.cbMotor.TabIndex = 1;
		this.cbMotor.SelectedIndexChanged += new System.EventHandler(cbMotor_SelectedIndexChanged);
		this.label1.Location = new System.Drawing.Point(8, 32);
		this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
		this.label1.Name = "label1";
		this.label1.Size = new System.Drawing.Size(173, 15);
		this.label1.TabIndex = 0;
		this.label1.Text = "电机类型:";
		this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
		this.gbX.Controls.Add(this.txtAttenuX);
		this.gbX.Controls.Add(this.label10);
		this.gbX.Controls.Add(this.txtSubdivX);
		this.gbX.Controls.Add(this.label11);
		this.gbX.Controls.Add(this.txtTorqueX);
		this.gbX.Controls.Add(this.label12);
		this.gbX.Controls.Add(this.txtSpeedX);
		this.gbX.Controls.Add(this.label13);
		this.gbX.Location = new System.Drawing.Point(396, 255);
		this.gbX.Margin = new System.Windows.Forms.Padding(4);
		this.gbX.Name = "gbX";
		this.gbX.Padding = new System.Windows.Forms.Padding(4);
		this.gbX.Size = new System.Drawing.Size(380, 174);
		this.gbX.TabIndex = 8;
		this.gbX.TabStop = false;
		this.gbX.Text = "X轴（水平）";
		this.txtAttenuX.Location = new System.Drawing.Point(196, 134);
		this.txtAttenuX.Margin = new System.Windows.Forms.Padding(4);
		this.txtAttenuX.Name = "txtAttenuX";
		this.txtAttenuX.ReadOnly = true;
		this.txtAttenuX.Size = new System.Drawing.Size(145, 25);
		this.txtAttenuX.TabIndex = 7;
		this.txtAttenuX.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
		this.label10.Location = new System.Drawing.Point(28, 140);
		this.label10.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
		this.label10.Name = "label10";
		this.label10.Size = new System.Drawing.Size(160, 15);
		this.label10.TabIndex = 6;
		this.label10.Text = "当前衰减:";
		this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
		this.txtSubdivX.Location = new System.Drawing.Point(196, 99);
		this.txtSubdivX.Margin = new System.Windows.Forms.Padding(4);
		this.txtSubdivX.Name = "txtSubdivX";
		this.txtSubdivX.ReadOnly = true;
		this.txtSubdivX.Size = new System.Drawing.Size(145, 25);
		this.txtSubdivX.TabIndex = 5;
		this.txtSubdivX.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
		this.label11.Location = new System.Drawing.Point(28, 110);
		this.label11.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
		this.label11.Name = "label11";
		this.label11.Size = new System.Drawing.Size(160, 15);
		this.label11.TabIndex = 4;
		this.label11.Text = "当前细分:";
		this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
		this.txtTorqueX.Location = new System.Drawing.Point(196, 64);
		this.txtTorqueX.Margin = new System.Windows.Forms.Padding(4);
		this.txtTorqueX.Name = "txtTorqueX";
		this.txtTorqueX.ReadOnly = true;
		this.txtTorqueX.Size = new System.Drawing.Size(145, 25);
		this.txtTorqueX.TabIndex = 3;
		this.txtTorqueX.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
		this.label12.Location = new System.Drawing.Point(28, 71);
		this.label12.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
		this.label12.Name = "label12";
		this.label12.Size = new System.Drawing.Size(160, 15);
		this.label12.TabIndex = 2;
		this.label12.Text = "当前转矩:";
		this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
		this.txtSpeedX.Location = new System.Drawing.Point(196, 29);
		this.txtSpeedX.Margin = new System.Windows.Forms.Padding(4);
		this.txtSpeedX.Name = "txtSpeedX";
		this.txtSpeedX.ReadOnly = true;
		this.txtSpeedX.Size = new System.Drawing.Size(145, 25);
		this.txtSpeedX.TabIndex = 1;
		this.txtSpeedX.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
		this.label13.Location = new System.Drawing.Point(28, 35);
		this.label13.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
		this.label13.Name = "label13";
		this.label13.Size = new System.Drawing.Size(160, 15);
		this.label13.TabIndex = 0;
		this.label13.Text = "当前位置:";
		this.label13.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
		this.gbZ.Controls.Add(this.txtAttenuZ);
		this.gbZ.Controls.Add(this.label14);
		this.gbZ.Controls.Add(this.txtSubdivZ);
		this.gbZ.Controls.Add(this.label15);
		this.gbZ.Controls.Add(this.txtTorqueZ);
		this.gbZ.Controls.Add(this.label16);
		this.gbZ.Controls.Add(this.txtSpeedZ);
		this.gbZ.Controls.Add(this.label17);
		this.gbZ.Location = new System.Drawing.Point(396, 432);
		this.gbZ.Margin = new System.Windows.Forms.Padding(4);
		this.gbZ.Name = "gbZ";
		this.gbZ.Padding = new System.Windows.Forms.Padding(4);
		this.gbZ.Size = new System.Drawing.Size(376, 170);
		this.gbZ.TabIndex = 9;
		this.gbZ.TabStop = false;
		this.gbZ.Text = "Z轴(垂直)";
		this.txtAttenuZ.Location = new System.Drawing.Point(196, 125);
		this.txtAttenuZ.Margin = new System.Windows.Forms.Padding(4);
		this.txtAttenuZ.Name = "txtAttenuZ";
		this.txtAttenuZ.ReadOnly = true;
		this.txtAttenuZ.Size = new System.Drawing.Size(145, 25);
		this.txtAttenuZ.TabIndex = 7;
		this.txtAttenuZ.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
		this.label14.Location = new System.Drawing.Point(28, 130);
		this.label14.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
		this.label14.Name = "label14";
		this.label14.Size = new System.Drawing.Size(160, 15);
		this.label14.TabIndex = 6;
		this.label14.Text = "当前衰减:";
		this.label14.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
		this.txtSubdivZ.Location = new System.Drawing.Point(196, 90);
		this.txtSubdivZ.Margin = new System.Windows.Forms.Padding(4);
		this.txtSubdivZ.Name = "txtSubdivZ";
		this.txtSubdivZ.ReadOnly = true;
		this.txtSubdivZ.Size = new System.Drawing.Size(145, 25);
		this.txtSubdivZ.TabIndex = 5;
		this.txtSubdivZ.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
		this.label15.Location = new System.Drawing.Point(28, 95);
		this.label15.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
		this.label15.Name = "label15";
		this.label15.Size = new System.Drawing.Size(160, 15);
		this.label15.TabIndex = 4;
		this.label15.Text = "当前细分:";
		this.label15.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
		this.txtTorqueZ.Location = new System.Drawing.Point(196, 55);
		this.txtTorqueZ.Margin = new System.Windows.Forms.Padding(4);
		this.txtTorqueZ.Name = "txtTorqueZ";
		this.txtTorqueZ.ReadOnly = true;
		this.txtTorqueZ.Size = new System.Drawing.Size(145, 25);
		this.txtTorqueZ.TabIndex = 3;
		this.txtTorqueZ.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
		this.label16.Location = new System.Drawing.Point(28, 61);
		this.label16.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
		this.label16.Name = "label16";
		this.label16.Size = new System.Drawing.Size(160, 15);
		this.label16.TabIndex = 2;
		this.label16.Text = "当前转矩:";
		this.label16.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
		this.txtSpeedZ.Location = new System.Drawing.Point(196, 20);
		this.txtSpeedZ.Margin = new System.Windows.Forms.Padding(4);
		this.txtSpeedZ.Name = "txtSpeedZ";
		this.txtSpeedZ.ReadOnly = true;
		this.txtSpeedZ.Size = new System.Drawing.Size(145, 25);
		this.txtSpeedZ.TabIndex = 1;
		this.txtSpeedZ.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
		this.label17.Location = new System.Drawing.Point(28, 25);
		this.label17.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
		this.label17.Name = "label17";
		this.label17.Size = new System.Drawing.Size(160, 15);
		this.label17.TabIndex = 0;
		this.label17.Text = "当前位置:";
		this.label17.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
		this.gbY.Controls.Add(this.txtAttenuY);
		this.gbY.Controls.Add(this.label18);
		this.gbY.Controls.Add(this.txtSubdivY);
		this.gbY.Controls.Add(this.label19);
		this.gbY.Controls.Add(this.txtTorqueY);
		this.gbY.Controls.Add(this.label20);
		this.gbY.Controls.Add(this.txtSpeedY);
		this.gbY.Controls.Add(this.label21);
		this.gbY.Location = new System.Drawing.Point(16, 436);
		this.gbY.Margin = new System.Windows.Forms.Padding(4);
		this.gbY.Name = "gbY";
		this.gbY.Padding = new System.Windows.Forms.Padding(4);
		this.gbY.Size = new System.Drawing.Size(372, 170);
		this.gbY.TabIndex = 9;
		this.gbY.TabStop = false;
		this.gbY.Text = "Y轴(采样深度)";
		this.txtAttenuY.Location = new System.Drawing.Point(189, 126);
		this.txtAttenuY.Margin = new System.Windows.Forms.Padding(4);
		this.txtAttenuY.Name = "txtAttenuY";
		this.txtAttenuY.ReadOnly = true;
		this.txtAttenuY.Size = new System.Drawing.Size(143, 25);
		this.txtAttenuY.TabIndex = 7;
		this.txtAttenuY.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
		this.label18.Location = new System.Drawing.Point(25, 132);
		this.label18.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
		this.label18.Name = "label18";
		this.label18.Size = new System.Drawing.Size(160, 15);
		this.label18.TabIndex = 6;
		this.label18.Text = "当前衰减:";
		this.label18.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
		this.txtSubdivY.Location = new System.Drawing.Point(189, 91);
		this.txtSubdivY.Margin = new System.Windows.Forms.Padding(4);
		this.txtSubdivY.Name = "txtSubdivY";
		this.txtSubdivY.ReadOnly = true;
		this.txtSubdivY.Size = new System.Drawing.Size(143, 25);
		this.txtSubdivY.TabIndex = 5;
		this.txtSubdivY.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
		this.label19.Location = new System.Drawing.Point(25, 98);
		this.label19.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
		this.label19.Name = "label19";
		this.label19.Size = new System.Drawing.Size(160, 15);
		this.label19.TabIndex = 4;
		this.label19.Text = "当前细分:";
		this.label19.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
		this.txtTorqueY.Location = new System.Drawing.Point(189, 56);
		this.txtTorqueY.Margin = new System.Windows.Forms.Padding(4);
		this.txtTorqueY.Name = "txtTorqueY";
		this.txtTorqueY.ReadOnly = true;
		this.txtTorqueY.Size = new System.Drawing.Size(143, 25);
		this.txtTorqueY.TabIndex = 3;
		this.txtTorqueY.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
		this.label20.Location = new System.Drawing.Point(25, 64);
		this.label20.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
		this.label20.Name = "label20";
		this.label20.Size = new System.Drawing.Size(160, 15);
		this.label20.TabIndex = 2;
		this.label20.Text = "当前转矩:";
		this.label20.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
		this.txtSpeedY.Location = new System.Drawing.Point(189, 21);
		this.txtSpeedY.Margin = new System.Windows.Forms.Padding(4);
		this.txtSpeedY.Name = "txtSpeedY";
		this.txtSpeedY.ReadOnly = true;
		this.txtSpeedY.Size = new System.Drawing.Size(143, 25);
		this.txtSpeedY.TabIndex = 1;
		this.txtSpeedY.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
		this.label21.Location = new System.Drawing.Point(25, 28);
		this.label21.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
		this.label21.Name = "label21";
		this.label21.Size = new System.Drawing.Size(160, 15);
		this.label21.TabIndex = 0;
		this.label21.Text = "当前位置:";
		this.label21.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
		this.groupBox2.Controls.Add(this.txtLog);
		this.groupBox2.Location = new System.Drawing.Point(784, 9);
		this.groupBox2.Margin = new System.Windows.Forms.Padding(4);
		this.groupBox2.Name = "groupBox2";
		this.groupBox2.Padding = new System.Windows.Forms.Padding(4);
		this.groupBox2.Size = new System.Drawing.Size(267, 598);
		this.groupBox2.TabIndex = 11;
		this.groupBox2.TabStop = false;
		this.groupBox2.Text = "报警信息";
		this.txtLog.Dock = System.Windows.Forms.DockStyle.Fill;
		this.txtLog.Location = new System.Drawing.Point(4, 22);
		this.txtLog.Margin = new System.Windows.Forms.Padding(4);
		this.txtLog.Multiline = true;
		this.txtLog.Name = "txtLog";
		this.txtLog.ReadOnly = true;
		this.txtLog.Size = new System.Drawing.Size(259, 572);
		this.txtLog.TabIndex = 0;
		this.button1.Location = new System.Drawing.Point(16, 624);
		this.button1.Name = "button1";
		this.button1.Size = new System.Drawing.Size(356, 37);
		this.button1.TabIndex = 12;
		this.button1.Text = "三维平台可靠性测试";
		this.button1.UseVisualStyleBackColor = true;
		this.button1.Click += new System.EventHandler(button1_Click);
		base.AutoScaleDimensions = new System.Drawing.SizeF(8f, 15f);
		base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
		base.ClientSize = new System.Drawing.Size(1336, 689);
		base.Controls.Add(this.button1);
		base.Controls.Add(this.groupBox2);
		base.Controls.Add(this.gbY);
		base.Controls.Add(this.gbZ);
		base.Controls.Add(this.gbX);
		base.Controls.Add(this.groupBox1);
		base.Controls.Add(this.gbPerist);
		base.Margin = new System.Windows.Forms.Padding(4);
		base.Name = "FormPlat";
		base.ShowIcon = false;
		this.Text = "三维平台和蠕动泵";
		base.FormClosing += new System.Windows.Forms.FormClosingEventHandler(FormPlat_FormClosing);
		base.Load += new System.EventHandler(FormPlat_Load);
		this.gbPerist.ResumeLayout(false);
		this.gbPerist.PerformLayout();
		this.groupBox1.ResumeLayout(false);
		this.groupBox1.PerformLayout();
		this.gbPlat.ResumeLayout(false);
		this.gbPlat.PerformLayout();
		this.gbX.ResumeLayout(false);
		this.gbX.PerformLayout();
		this.gbZ.ResumeLayout(false);
		this.gbZ.PerformLayout();
		this.gbY.ResumeLayout(false);
		this.gbY.PerformLayout();
		this.groupBox2.ResumeLayout(false);
		this.groupBox2.PerformLayout();
		base.ResumeLayout(false);
	}
}
